package com.demarc.pesquisas.infraestrutura.util.relatorio;

import java.util.ArrayList;
import java.util.List;

/**
 * A report row that holds columns with valuable object to be printed.
 */
public class ReportRow {

	private final Report report;
	private final List<ReportColumn> columns;

	public ReportRow(Report report) {
		this.report = report;
		columns = new ArrayList<ReportColumn>();
	}

	public List<ReportColumn> getColumns() {
		return columns;
	}

	public ReportColumn addColumn(Object value) {
		ReportColumn reportColumn = new ReportColumn(report, value);
		columns.add(reportColumn);
		return reportColumn;
	}
}
